<!DOCTYPE html>
<html lang="en">
<head>
    <title>老版本VUE示例</title>
</head>
<body>
    <div id="app">
        <!-- 1.变量是字符串 -->
        <h1 v-text="message"></h1>
        <h1 v-html="message"></h1>

        <!-- 2.变量是html代码 -->
        <h1 v-text="htmlinfo"></h1>
        <h1 v-html="htmlinfo"></h1>

    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script>
        var app123 = new Vue({
            el:"#app",
            data:{
                message:"hellado",
                htmlinfo:"<a href='baidu.com'>haha</a>"
            }
            
        })
    </script>
</body>
</html>